package com.csc.dao;

import java.util.Date;
import java.util.List;

import com.csc.domain.Account;
import com.csc.domain.Transaction;

public interface TransactionDao {

	public List<Transaction> getTransactionListByAccountId(int accountId);

	public List<Transaction> getTransactionListByCustomer(Date from, Date to,int userId);
	
	public List<Transaction> getTransactionListPending();

	public Transaction findTransactionById(int transactionId);

	public Transaction findTransactionByStringId(String transactionId);
	
	public boolean insertNewTransaction(Transaction newTransaction);
	
	public boolean updateTransaction(Transaction transaction);
	
	public boolean update(Account account, Transaction transaction);

	public boolean update(Account sendAccount,Account receiveAccount, Transaction transaction);

	public List<Transaction> getTransactionListComplete();
}
